#include "Input.h"

#include "../IO/DeviceInput.h"

#include <gslib.h>

Input::Input(){}

bool Input::getKeyState(KeyCode::Code  key) const{
	return DeviceInput::getInst()->isKeyState(key);
	//return gsGetKeyState(key) == GS_TRUE;
}

bool Input::getKeyTrigger(KeyCode::Code  key) const{
	return DeviceInput::getInst()->isKeyTrigger(key);
	//return gsGetKeyTrigger(key) == GS_TRUE;
}

bool Input::getJoyState(int joyNo, JoyState::joy state)const
{
	joyNo;
	state;
	return false;
	//return gsGetJoyState(joyNo, (GJOYSTATE)state) == GS_TRUE;
}

bool Input::getJoyTrigger(int joyNo, JoyState::joy state)const
{
	joyNo;
	state;
	return false;
	//return gsGetJoyTrigger(joyNo, (GJOYSTATE)state) == GS_TRUE;
}